class AddColumnsForActsAsParanoid < ActiveRecord::Migration
  def self.up
    add_column :photos,           :deleted_at, :datetime
    add_column :photo_sizes,      :deleted_at, :datetime
    add_column :videos,           :deleted_at, :datetime
    add_column :items,            :deleted_at, :datetime
    add_column :item_options,     :deleted_at, :datetime
    add_column :itemizations,     :deleted_at, :datetime
    add_column :orders,           :deleted_at, :datetime
    add_column :order_options,    :deleted_at, :datetime
    add_column :order_extras,     :deleted_at, :datetime
    add_column :shipping_methods, :deleted_at, :datetime
    add_column :users,            :deleted_at, :datetime
  end

  def self.down
    remove_column :photos,           :deleted_at
    remove_column :photo_sizes,      :deleted_at
    remove_column :videos,           :deleted_at
    remove_column :items,            :deleted_at
    remove_column :item_options,     :deleted_at
    remove_column :itemizations,     :deleted_at
    remove_column :orders,           :deleted_at
    remove_column :order_options,    :deleted_at
    remove_column :order_extras,     :deleted_at
    remove_column :shipping_methods, :deleted_at
    remove_column :users,            :deleted_at
  end
end
